package com.vitabuybuy.tv.ui.shopcenter.adapter

import androidx.recyclerview.widget.RecyclerView
import com.vitabuybuy.tv.R
import com.vitabuybuy.tv.databinding.ItemCategoryBinding
import com.vitabuybuy.tv.dto.ClassificationDto
import com.library.common.base.BindRecycAdapter

class CategoryAdapter :
    BindRecycAdapter<ItemCategoryBinding, ClassificationDto.ChildrenBean.ChildrenBean2>() {
    override fun onBindViewHolder(
        mBinding: ItemCategoryBinding,
        itemData: ClassificationDto.ChildrenBean.ChildrenBean2,
        holder: RecyclerView.ViewHolder,
        position: Int
    ) {
        mBinding.itemData = itemData
    }

    override fun normalViewId(viewType: Int): Int {
        return R.layout.item_category
    }
}
